import Vue from "vue";
import App from "./App.vue";

import derective from "./main/directive";
import filter from "./main/filter";

Vue.config.productionTip = false;
Vue.use(derective);
Vue.use(filter);

// Vue.directive("role",(el,binding)=>{
//    if(!binding.value.includes(nowRole)){
//     console.log(el);
//     console.log(binding.value);
//     el.remove()//无法修改 因为自定义指令后面接的是函数默认钩子是bind
//  bind:初始化指令的时候执行
//    }
// })

new Vue({
  render: (h) => h(App),
}).$mount("#app");
